<?php
					if(!isset($this->cart) && count($this->cart) == 0){
					?>
					<tr>
						<td colspan="4" class = "error">
						Bạn chưa có sản phẩm nào trong giỏ hàng
						</td>
					</tr>
					<?php
					 }else{
foreach ($this->cart as $product_id => $product)
{
?>
					<tr class="trow">
                        <td class="col1">
                        	<input type="text" name="quantity" value="<?php echo $product["quantity"];?>" />
                        	<a class="update" href="<?php echo $product_id;?>">Cập nhật</a> - <a class="delete" href="<?php echo $product_id;?>">Bỏ mua</a>    
                        </td>
                        <td class="col2"><?php echo $product["name"];?></td>
                        <td class="col3"><?php echo number_format($product["price"])?> VND</td>

                        <td class="col4"><?php echo number_format($product["quantity"] * $product["price"])?> VND</td>
                     </tr>
					<?php 	
					 }
					 }
					?>
                     
                    <tr >
                        <td id="total_price_cart_text" colspan="3">Tổng giá trị hóa đơn hàng cần thanh toán: </td>
                        <td id="total_price_cart_value"><?php echo number_format($this->totalPrice);?> VND</td>

                    </tr>